﻿using UnityEngine;
using System.Collections;

public enum CameraTestMenu
{
	NoZoomEffect,
	ZoomEffect1,
	ZoomEffect2,
	ZoomEffect3,
	ZoomSpeed1,
	ZoomSpeed2,
	NoFreeCam,
	FreeCam1,
	FreeCam2,
	ZoomSpeed3,
	FreeCam3,
	InstantFocus,
}

public class CameraTestButton : MonoBehaviour {
	
	public CameraTestMenu testMenu;
	
	void Awake()
	{
		gameObject.transform.FindChild("Label").gameObject.GetComponent<UILabel>().text = testMenu.ToString();
	}
	
	void OnClick()
	{
		glog.debug("camera test click  "+testMenu);
		Camera.main.gameObject.GetComponent<CameraControl>().SetCameraTest(testMenu);
		UIManager.Instance.debugCamPanel.SetActive(false);
	}
	
}
